package com.xyy.saas.payment.adpater.yzh.vo;

import com.xyy.saas.payment.adpater.yzh.BasePay;
import com.xyy.saas.payment.util.JSONUtils;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class ThreeFactorVerify extends BasePay<ThreeFactorVerifyRequest> {
    private String realName;
    private String idCard;
    private String bankCardNo;

    @Override
    public ThreeFactorVerifyRequest assembleParam() {
        ThreeFactorVerifyRequest request = ThreeFactorVerifyRequest.builder()
                .real_name(realName)
                .id_card(idCard)
                .card_no(bankCardNo)
                .build();
        log.info("ThreeFactorVerify#assembleParam:{}", JSONUtils.toJSON(request));
        return request;
    }

    public ThreeFactorVerify(String realName, String idCard, String bankCardNo) {
        this.realName = realName;
        this.idCard = idCard;
        this.bankCardNo = bankCardNo;
    }

    public ThreeFactorVerify() {
    }
}
